#include <iostream>
#include "Profile.h"

using namespace std;

int main(int argc, char **argv)
{
    Profile ini("prof_test.ini");
    ini.SetString("TEST", "test", "ok");
    cout << "read string: " << ini.GetString("TEST", "test") << endl;
    ini.SetString("TEST", "test test         ", "ok"); // note the spaces!
    cout << "read string: " << ini.GetString("TEST", "test test") << endl;
    cout << "should fail: " << ini.GetString("TEST", "fail", "fail") << endl;
    ini.SetString("WRITE", "test", "rhabarber, rhabarber");
    return 0;
}
